<?php (!defined('IN_SYSTEM') || !defined('ADMIN_PRE')) && exit('Access Denied!');?>
{admintemplate header}
<div class="box">
	<div class="heading">
	<h1>编辑用户组</h1>
	<div class="buttons">
	<a href="{url admin.php?m=usergroup}" >用户组列表</a>
	<a href="{url admin.php?m=usergroup&f=add}" >添加用户组</a>
	</div>
	</div>
	<div class="main">
	<form method="post" action="{url admin.php?m=usergroup&f=save}" onsubmit="return usergroup_save()">
	<input type="hidden" name="savetype" value="new" />
		<table class="sub">
			<tr>
				<td width="110" align="right">用户组名称：</td>
				<td><input type="text" name="groupname" class="input" size="20" value="{$usergroup['groupname']}" /> </td>
			</tr>
			<tr>
				<td align="right">达到本组所需积分：</td>
				<td><input type="text" name="point" class="input" size="29" value="{$usergroup['point']}" /> </td>
			</tr>
			<tbody>
			<tr>
				<td align="right">访问站点：</td>
				<td>
				<input type="radio" name="accessex[access]" value="1" class="radio" {if $access['access']==1}checked="checked"{/if}/>允许
				<input type="radio" name="accessex[access]" value="0" class="radio" {if $access['access']==0}checked="checked"{/if}/>禁止
				</td>
			</tr>
			<tr>
				<td align="right">评论字数限制：</td>
				<td><input type="text" name="accessex[commaxchars]" size="15" class="input" value="{$access['commaxchars']}" /> 字节
				</td>
			</tr>
			<tr>
				<td align="right">评论时间间隔：</td>
				<td><input type="text" name="accessex[comtimelimit]" size="15" class="input" value="{$access['comtimelimit']}" /> 秒
				</td>
			</tr>
			<tr><th>上传文件</th><th></th></tr>
			<tr>
				<td align="right">允许上传文件：</td>
				<td><input type="radio" name="accessex[upfile]" value="1" class="radio" {if $access["upfile"]==1}checked="checked"{/if}/>允许
			<input type="radio" name="accessex[upfile]" value="0" class="radio" {if $access["upfile"]==0}checked="checked"{/if}/>禁止
				</td>
			</tr>
			<tr>
				<td align="right">最大单文件尺寸：</td>
				<td><input type="text" name="accessex[upfilesize]" size="15" class="input" value="{$access['upfilesize']}" />  <span>设置单个文件最大尺寸(单位K 1M=1024K)，0 为不限制</span>
				</td>
			</tr>
			<tr>
				<td align="right">最大文件空间：</td>
				<td><input type="text" name="accessex[upfiletotal]" size="15" class="input" value="{$access['upfiletotal']}" />  <span>设置用户可以上传的文件总量(单位K 1M=1024K)，0 为不限制</span>
				</td>
			</tr>
			<tr>
				<td align="right">允许文件类型：</td>
				<td><input type="text" name="accessex[upfiletype]" size="15" class="input" value="{$access['upfiletype']}" />  <span>设置允许上传的文件扩展名，多个扩展名之间用半角 "|" 隔开，留空为不限制</span>
				</td>
			</tr>
			</tbody>
			</table>
			<dl class="pmdl">
			{loop $perms $n $perm}
			<dt>{$n}</dt>
			{loop $perm $k $v}
			<dd>
			{$v}:
			<input type="radio" name="accessex[{$k}]" value="1" class="radio" {if $access["$k"]==1}checked="checked"{/if}/>允许
			<input type="radio" name="accessex[{$k}]" value="0" class="radio" {if $access["$k"]==0}checked="checked"{/if}/>禁止
			</dd>
			{/loop}
			{/loop}
			</dl>
			<div style="clear:both;padding-top:29px;text-align:center;">
			<input type="submit" class="button" value="保存用户组" /> <input type="button" class="button" onclick="history.back()" value="取消返回" />
			</div>
	</form>
</div>
</div>
{admintemplate footer}